
  <!DOCTYPE html>
    <html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>health - onlinexzone.com</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=yes">
    <link rel="icon" type="image/png" href="https://onlinexzone.com/assets/favicon.ico">
    <!-- Google Tag Manager -->
    <script>(function (w, d, s, l, i) {
            w[l] = w[l] || []; w[l].push({
                'gtm.start':
                    new Date().getTime(), event: 'gtm.js'
            }); var f = d.getElementsByTagName(s)[0],
                j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
                    'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
        })(window, document, 'script', 'dataLayer', 'GTM-WQKS4BKW');</script>
    <!-- End Google Tag Manager -->
    <meta name='robots' content='max-image-preview:large' />
    <meta property='og:type' content='webpage'>
    <meta property="og:title" content="onlinexzone.com - health">
    <meta property="og:image" content="https://onlinexzone.com/assets/news/category/health/1.webp?image_process=quality,q_20">
    <meta property="og:url" content="https://onlinexzone.com/category/health/">
    <link rel="canonical" href="https://onlinexzone.com/category/health/">
    <meta property='og:locale' content='en_US'>
    <meta property='og:site_name' content='onlinexzone.com'>
    <meta property='og:image:width' content='868'>
    <meta property='og:image:height' content='1300'>

    <link rel="stylesheet" href="https://onlinexzone.com/category/public/public.css">
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6907038225839490"
        crossorigin="anonymous"></script>
    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-4243E677K0"></script>
</head>

<body class="bi-pagetype-single archive category category-health category-7 unified-pagetype-single unified-lang-en_US">

    <a id="page-top" tabindex='-1'></a>
    <a class="skip-main" href="#main">Skip to main content</a>

    <div class="popout">
        <a class="popout__logo" href="https://onlinexzone.com/" aria-label="Go to onlinexZone Homepage">
            <img alt="onlinexZone logo" src="https://onlinexzone.com/assets/logo.png" class="popout__logo-image" width="160"
                height="30.06" />
        </a>

        <button class="popout__close" type="button" aria-label="Close Menu">

        </button>


        <nav class="popout-nav" aria-label="Pop Out Site Menu">
            <ul id="menu-popout-menu-english" class="popout-nav__list">
                <li id="menu-item-11654"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11654">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/health/">Health</a>
                </li>
                <li id="menu-item-11659"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11659">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/travel/">Travel</a>
                </li>
                <li id="menu-item-11657"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11657">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/auto/">Auto</a>
                </li>
                <li id="menu-item-11655"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11655">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/finance/">Finance</a>
                </li>
                <li id="menu-item-11656"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11656">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/tech/">Tech</a>
                </li>
            </ul>
            <nav class="popout-secondary-nav" aria-label="Pop Out Privacy Menu" style="padding: 0;">
                <ul id="menu-popout-privacy-menu-english" class="popout-secondary-nav__list cmp__menu">
                    <li id="menu-item-11660"
                        class="menu-item menu-item-type-custom menu-item-object-custom popout-secondary-nav__item menu-item-11660">
                        <a class="popout-nav__link" target="_blank"
                            href="https://docs.google.com/document/d/17ydjwONuPcDChPCnV-DVzH6hqOB58B8TwUffEQvUYd4/pub">Privacy
                            Policy</a>
                    </li>

                </ul>
            </nav>
        </nav>

    </div>
    <div class="overlay"></div>
    <header class="header">
        <!-- logo -->

        <div class="logoBox">
            <a class="logo" href="https://onlinexzone.com" target="_parent" aria-label="Go to onlinexzone.com Homepage">
                <img alt="onlinexzone.com logo" src="https://onlinexzone.com/assets/logo.png" class="logo__image" />
            </a>
            <button class="hamburger" type="button" aria-label="Show Menu"><span
                    class="hamburger__span"></span></button>
        </div>

        <!-- mobile menu toggle -->



        <!-- primary menu -->
        <nav class="nav" aria-label="Site Menu">
            <ul id="menu-primary-menu-english" class="nav__list">
                <li id="menu-item-125"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-125"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/health/">Health</a></li>
                <li id="menu-item-128"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-128"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/travel/">Travel</a></li>
                <li id="menu-item-123"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-123"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/auto/">Auto</a></li>
                <li id="menu-item-124"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-124"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/finance/">Finance</a>
                </li>
                <li id="menu-item-127"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-127"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/tech/">Tech</a></li>
            </ul>
        </nav>
    </header>
    <main class="main main--category" id="main">
        <section class="hero hero--category">
            <h1 class="hero__heading">
            Health
            </h1>

        </section>


        <section class="section section--variation-5">
            <h2 class="section__heading section__heading--variation-5">
                Health Latest New
            </h2>
            <div class="post-module post-module--variation-5"><div class="post-module__item">  <a class="post-module__thumb-link"
                   href="https://onlinexzone.com/detail/health/A-Nutrient-Rich-Journey/">
                   <span class="screen-reader-text">A Nutrient-Rich Journey</span>
                   <img 
                       src='https://onlinexzone.com/assets/news/category/health/1.webp?image_process=quality,q_20'
                       sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                       width="600" height="315"
                       data-src="https://onlinexzone.com/assets/news/category/health/1.webp?image_process=quality,q_20"
                       class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                       srcset="https://onlinexzone.com/assets/news/category/health/1.webp?image_process=quality,q_20"
                       sizes="(max-width: 600px) 100vw, 600px" />
                       <noscript><img width="600" height="315"
                           src="https://onlinexzone.com/assets/news/category/health/1.webp?image_process=quality,q_20"
                           class="post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                           sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>

               <a class="post-module__category-link" href="https://onlinexzone.com/category/health/"
                   aria-label="More from Health">
                   <span class="post-module__category">health</span>
               </a>
               <h3 class="post-module__heading">
                   <a class="post-module__heading-link"
                       href="https://onlinexzone.com/detail/health/A-Nutrient-Rich-Journey/">A Nutrient-Rich Journey </a>
               </h3>
               <div class="post-module__description">
                   <p>A Nutrient-Rich Journey</p>
               </div>
               <a class="post-module__button"
                   href="https://onlinexzone.com/detail/health/A-Nutrient-Rich-Journey/">Read
                   More<span class="screen-reader-text"> A Nutrient-Rich Journey</span></a>
               <p class="post-module__read-time">11 minute read</p></div><div class="post-module__item">  <a class="post-module__thumb-link"
                   href="https://onlinexzone.com/detail/health/Exploring-Nutrition-and-Well-Being/">
                   <span class="screen-reader-text">Exploring Nutrition and Well-Being</span>
                   <img 
                       src='https://onlinexzone.com/assets/news/category/health/2.webp?image_process=quality,q_20'
                       sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                       width="600" height="315"
                       data-src="https://onlinexzone.com/assets/news/category/health/2.webp?image_process=quality,q_20"
                       class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                       srcset="https://onlinexzone.com/assets/news/category/health/2.webp?image_process=quality,q_20"
                       sizes="(max-width: 600px) 100vw, 600px" />
                       <noscript><img width="600" height="315"
                           src="https://onlinexzone.com/assets/news/category/health/2.webp?image_process=quality,q_20"
                           class="post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                           sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>

               <a class="post-module__category-link" href="https://onlinexzone.com/category/health/"
                   aria-label="More from Health">
                   <span class="post-module__category">health</span>
               </a>
               <h3 class="post-module__heading">
                   <a class="post-module__heading-link"
                       href="https://onlinexzone.com/detail/health/Exploring-Nutrition-and-Well-Being/">Exploring Nutrition and Well-Being </a>
               </h3>
               <div class="post-module__description">
                   <p>Exploring Nutrition and Well-Being</p>
               </div>
               <a class="post-module__button"
                   href="https://onlinexzone.com/detail/health/Exploring-Nutrition-and-Well-Being/">Read
                   More<span class="screen-reader-text"> Exploring Nutrition and Well-Being</span></a>
               <p class="post-module__read-time">11 minute read</p></div><div class="post-module__item">  <a class="post-module__thumb-link"
                   href="https://onlinexzone.com/detail/health/Healthy-Eating--From-Table-to-Well-being/">
                   <span class="screen-reader-text">Healthy Eating: From Table to Well-being</span>
                   <img 
                       src='https://onlinexzone.com/assets/news/category/health/3.webp?image_process=quality,q_20'
                       sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                       width="600" height="315"
                       data-src="https://onlinexzone.com/assets/news/category/health/3.webp?image_process=quality,q_20"
                       class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                       srcset="https://onlinexzone.com/assets/news/category/health/3.webp?image_process=quality,q_20"
                       sizes="(max-width: 600px) 100vw, 600px" />
                       <noscript><img width="600" height="315"
                           src="https://onlinexzone.com/assets/news/category/health/3.webp?image_process=quality,q_20"
                           class="post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                           sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>

               <a class="post-module__category-link" href="https://onlinexzone.com/category/health/"
                   aria-label="More from Health">
                   <span class="post-module__category">health</span>
               </a>
               <h3 class="post-module__heading">
                   <a class="post-module__heading-link"
                       href="https://onlinexzone.com/detail/health/Healthy-Eating--From-Table-to-Well-being/">Healthy Eating: From Table to Well-being </a>
               </h3>
               <div class="post-module__description">
                   <p>Healthy Eating: From Table to Well-being</p>
               </div>
               <a class="post-module__button"
                   href="https://onlinexzone.com/detail/health/Healthy-Eating--From-Table-to-Well-being/">Read
                   More<span class="screen-reader-text"> Healthy Eating: From Table to Well-being</span></a>
               <p class="post-module__read-time">3 minute read</p></div><div class="post-module__item">  <a class="post-module__thumb-link"
                   href="https://onlinexzone.com/detail/health/Vegetables-and-Health--Indispensable-Partners/">
                   <span class="screen-reader-text">Vegetables and Health: Indispensable Partners</span>
                   <img 
                       src='https://onlinexzone.com/assets/news/category/health/4.webp?image_process=quality,q_20'
                       sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                       width="600" height="315"
                       data-src="https://onlinexzone.com/assets/news/category/health/4.webp?image_process=quality,q_20"
                       class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                       srcset="https://onlinexzone.com/assets/news/category/health/4.webp?image_process=quality,q_20"
                       sizes="(max-width: 600px) 100vw, 600px" />
                       <noscript><img width="600" height="315"
                           src="https://onlinexzone.com/assets/news/category/health/4.webp?image_process=quality,q_20"
                           class="post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                           sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>

               <a class="post-module__category-link" href="https://onlinexzone.com/category/health/"
                   aria-label="More from Health">
                   <span class="post-module__category">health</span>
               </a>
               <h3 class="post-module__heading">
                   <a class="post-module__heading-link"
                       href="https://onlinexzone.com/detail/health/Vegetables-and-Health--Indispensable-Partners/">Vegetables and Health: Indispensable Partners </a>
               </h3>
               <div class="post-module__description">
                   <p>Human health is closely related to the intake of nutrients, which is the process of meeting the body’s material requirements for normal survival. These specific substances are called nutrients. Nutrients can be divided into two categories: essential nutrients and non-essential nutrients.</p>
               </div>
               <a class="post-module__button"
                   href="https://onlinexzone.com/detail/health/Vegetables-and-Health--Indispensable-Partners/">Read
                   More<span class="screen-reader-text"> Human health is closely related to the intake of nutrients, which is the process of meeting the body’s material requirements for normal survival. These specific substances are called nutrients. Nutrients can be divided into two categories: essential nutrients and non-essential nutrients.</span></a>
               <p class="post-module__read-time">10 minute read</p></div><div class="post-module__item">  <a class="post-module__thumb-link"
                   href="https://onlinexzone.com/detail/health/Your-Source-of-Happiness/">
                   <span class="screen-reader-text">Your Source of Happiness</span>
                   <img 
                       src='https://onlinexzone.com/assets/news/category/health/5.webp?image_process=quality,q_20'
                       sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                       width="600" height="315"
                       data-src="https://onlinexzone.com/assets/news/category/health/5.webp?image_process=quality,q_20"
                       class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                       srcset="https://onlinexzone.com/assets/news/category/health/5.webp?image_process=quality,q_20"
                       sizes="(max-width: 600px) 100vw, 600px" />
                       <noscript><img width="600" height="315"
                           src="https://onlinexzone.com/assets/news/category/health/5.webp?image_process=quality,q_20"
                           class="post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                           sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>

               <a class="post-module__category-link" href="https://onlinexzone.com/category/health/"
                   aria-label="More from Health">
                   <span class="post-module__category">health</span>
               </a>
               <h3 class="post-module__heading">
                   <a class="post-module__heading-link"
                       href="https://onlinexzone.com/detail/health/Your-Source-of-Happiness/">Your Source of Happiness </a>
               </h3>
               <div class="post-module__description">
                   <p>Your Source of Happiness</p>
               </div>
               <a class="post-module__button"
                   href="https://onlinexzone.com/detail/health/Your-Source-of-Happiness/">Read
                   More<span class="screen-reader-text"> Your Source of Happiness</span></a>
               <p class="post-module__read-time">2 minute read</p></div></div>
            <section class="section">
                <nav class="pagination" aria-label="Page navigation"><div class='button button--pagination-next'
                        >See More</div></nav>
            </section>
        </section>


        <section class="section section--variation-8 ">
            <h2 class="section__heading section__heading--variation-8">
                Explore </h2>
            <div class="post-module post-module--variation-8">

            <div class="post-module__item">  <a class="post-module__thumb-link"
                       href="https://onlinexzone.com/category/detail/index.html?type=health&id=5">
                       <span class="screen-reader-text">Nurturing Inner Balance</span>
                       <img loading='lazy'
                           src='https://onlinexzone.com/assets/news/category/health/6.webp?image_process=quality,q_20'
                           sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                           width="600" height="315"
                           data-src="https://onlinexzone.com/assets/news/category/health/6.webp?image_process=quality,q_20"
                           class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                           srcset="https://onlinexzone.com/assets/news/category/health/6.webp?image_process=quality,q_20"
                           sizes="(max-width: 600px) 100vw, 600px" />
                           <noscript><img width="600" height="315"
                               src="https://onlinexzone.com/assets/news/category/health/6.webp?image_process=quality,q_20"
                               class="post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                               sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>


                   <a class="post-module__category-link" href="https://onlinexzone.com/category/health/"
                       aria-label="More from Health">
                       <span class="post-module__category">health</span>
                   </a>
                   <h3 class="post-module__heading">
                       <a class="post-module__heading-link"
                           href="https://onlinexzone.com/category/detail/index.html?type=health&id=5">Nurturing Inner Balance </a>
                   </h3>
                   <div class="post-module__description">
                       <p>Mental health is an integral part of overall well-being. It encompasses our emotions, thoughts, and social interactions. Having good mental health helps us cope with life’s challenges, maintain healthy relationships, and contribute positively to society.</p>
                   </div>
                   <a class="post-module__button"
                       href="https://onlinexzone.com/category/detail/index.html?type=health&id=5">Read
                       More<span class="screen-reader-text"> Mental health is an integral part of overall well-being. It encompasses our emotions, thoughts, and social interactions. Having good mental health helps us cope with life’s challenges, maintain healthy relationships, and contribute positively to society.</span></a>
                   <p class="post-module__read-time">4 minute read</p></div>
            
            <div class="post-module__item">  <a class="post-module__thumb-link"
                       href="https://onlinexzone.com/category/detail/index.html?type=health&id=6">
                       <span class="screen-reader-text">Exercise and Health: Making Life Better</span>
                       <img loading='lazy'
                           src='https://onlinexzone.com/assets/news/category/health/7.webp?image_process=quality,q_20'
                           sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                           width="600" height="315"
                           data-src="https://onlinexzone.com/assets/news/category/health/7.webp?image_process=quality,q_20"
                           class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                           srcset="https://onlinexzone.com/assets/news/category/health/7.webp?image_process=quality,q_20"
                           sizes="(max-width: 600px) 100vw, 600px" />
                           <noscript><img width="600" height="315"
                               src="https://onlinexzone.com/assets/news/category/health/7.webp?image_process=quality,q_20"
                               class="post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                               sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>


                   <a class="post-module__category-link" href="https://onlinexzone.com/category/health/"
                       aria-label="More from Health">
                       <span class="post-module__category">health</span>
                   </a>
                   <h3 class="post-module__heading">
                       <a class="post-module__heading-link"
                           href="https://onlinexzone.com/category/detail/index.html?type=health&id=6">Exercise and Health: Making Life Better </a>
                   </h3>
                   <div class="post-module__description">
                       <p>Abstract: This article explores the positive impact of exercise on health and how to incorporate it into our daily lives for both physical and mental well-being.</p>
                   </div>
                   <a class="post-module__button"
                       href="https://onlinexzone.com/category/detail/index.html?type=health&id=6">Read
                       More<span class="screen-reader-text"> Abstract: This article explores the positive impact of exercise on health and how to incorporate it into our daily lives for both physical and mental well-being.</span></a>
                   <p class="post-module__read-time">4 minute read</p></div>
            
            <div class="post-module__item">  <a class="post-module__thumb-link"
                       href="https://onlinexzone.com/category/detail/index.html?type=health&id=7">
                       <span class="screen-reader-text">The Impact of Different Mainstream Sports on Health</span>
                       <img loading='lazy'
                           src='https://onlinexzone.com/assets/news/category/health/8.webp?image_process=quality,q_20'
                           sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                           width="600" height="315"
                           data-src="https://onlinexzone.com/assets/news/category/health/8.webp?image_process=quality,q_20"
                           class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                           srcset="https://onlinexzone.com/assets/news/category/health/8.webp?image_process=quality,q_20"
                           sizes="(max-width: 600px) 100vw, 600px" />
                           <noscript><img width="600" height="315"
                               src="https://onlinexzone.com/assets/news/category/health/8.webp?image_process=quality,q_20"
                               class="post-module__thumb wp-post-image" alt="" decoding="async" fetchpriority="high"
                               sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>


                   <a class="post-module__category-link" href="https://onlinexzone.com/category/health/"
                       aria-label="More from Health">
                       <span class="post-module__category">health</span>
                   </a>
                   <h3 class="post-module__heading">
                       <a class="post-module__heading-link"
                           href="https://onlinexzone.com/category/detail/index.html?type=health&id=7">The Impact of Different Mainstream Sports on Health </a>
                   </h3>
                   <div class="post-module__description">
                       <p>The Impact of Different Mainstream Sports on Health</p>
                   </div>
                   <a class="post-module__button"
                       href="https://onlinexzone.com/category/detail/index.html?type=health&id=7">Read
                       More<span class="screen-reader-text"> The Impact of Different Mainstream Sports on Health</span></a>
                   <p class="post-module__read-time">6 minute read</p></div>
            </div>

        </section>

    </main>

    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WQKS4BKW" height="0" width="0"
            style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->
</body>

<script type="module">
    import {getAllUrlParams, addHeadElment, newsTypeObj} from '../../utils/common.js'
       
        // 设置文章
        const newsObj = newsTypeObj
        sessionStorage.setItem('newsObj', JSON.stringify(newsObj))

        const newsList = newsObj[i]
        if (newsList.length <= 8) {
            seeMore.style.display = 'none'
        }

</script>

<script>
        const seeMore = document.querySelector('.button--pagination-next')
        // see more
        seeMore.addEventListener('click', function (e) {
           console.log(123123)
            e.preventDefault()
            window.location.href = 'https://onlinexzone.com/seeMore/index.html?type=health&page=1'
        })
    // 隐藏侧边导航栏
    const popout = document.querySelector('.popout')
    // 关闭按钮
    const popout__close = document.querySelector('.popout__close')
    // 遮罩
    const overlay = document.querySelector('.overlay')

    const hamburger = document.querySelector('.hamburger')
    hamburger.addEventListener('click', function () {
        blockAside();
    })
    popout__close.addEventListener('click', function () {
        popout.classList.remove("popout--visible");
        overlay.classList.remove("overlay--visible")
        popout__close.classList.remove("popout__close--active")

    })
    function blockAside() {
        popout.classList.add("popout--transition", "popout--visible");
        overlay.classList.add("overlay--visible")
        popout__close.classList.add("popout__close--active")
        console.log('我是父页面的方法')
    }

    // 监听主题变化做的事
    let mqList = window.matchMedia('(prefers-color-scheme: dark)');
    const logoImg = document.querySelector('.logo__image')
    function switchColor() {
        if (mqList.matches) {
            // logoImg.src = logoImg.src.split('.png')[0] + '_dark' + '.png'
        }
    }
    switchColor()

    mqList.addEventListener('change', (event) => {
        // is dark mode
        if (event.matches) {
            switchColor()
        } else {
            // not dark mode
        }
    });

</script>

</html>